Skip to content

Fix pulp-concert PHP 8.2 parsing regressions#9

Merged
pjeweb merged 2 commits into
mainfrom
paul/fix-ocpi2-parking-trend
Jun 20, 2026
Merged

Fix pulp-concert PHP 8.2 parsing regressions#9
pjeweb merged 2 commits into
mainfrom
paul/fix-ocpi2-parking-trend

Conversation

@pjeweb

@pjeweb pjeweb commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix OCPI2 parking parsing so current short-term values and trends are selected correctly.
  • Fix traffic message coordinate parsing to avoid deprecated reset() calls on SimpleXMLElement values in PHP 8.2+.
  • Add focused regression tests for both parsing paths.

Test plan

  • vendor/bin/phpunit packages/pulp-concert/test

pjeweb added 2 commits June 20, 2026 11:27
Allow parking trend reduction to start from an empty carry value so OCPI2 short-term occupancy data parses cleanly on PHP 8.
Avoid deprecated array pointer calls on SimpleXMLElement coordinate values while preserving traffic message GeoJSON output.
@pjeweb pjeweb merged commit 71632d9 into main Jun 20, 2026
7 checks passed
@pjeweb pjeweb deleted the paul/fix-ocpi2-parking-trend branch June 20, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant